package cn.ilikes.tools.nosql.test.jpa.pojos;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import cn.ilikes.tools.nosql.jpa.annotations.IndexColumn;

@Entity
@Table(name = "pe_dept_evaluation_kpi_maps", schema = "ilikes")
public class DeptEvaluationKpiMaps {

	@Id
	@IndexColumn(index = IndexColumn.Index.analyzed, name = "id", store = IndexColumn.Store.yes)
	private Integer uuid;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "depts_id", nullable = false)
	@IndexColumn(index = IndexColumn.Index.not_analyzed, name = "deptsId", store = IndexColumn.Store.no)
	private Depts depts;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "evaluation_kpi_id", nullable = false)
	@IndexColumn(index = IndexColumn.Index.not_analyzed, name = "evaluationKpiId", store = IndexColumn.Store.no)
	private EvaluationKpi evaluationKpi;

	public Integer getUuid() {
		return uuid;
	}

	public void setUuid(Integer uuid) {
		this.uuid = uuid;
	}

	public Depts getDepts() {
		return depts;
	}

	public void setDepts(Depts depts) {
		this.depts = depts;
	}

	public EvaluationKpi getEvaluationKpi() {
		return evaluationKpi;
	}

	public void setEvaluationKpi(EvaluationKpi evaluationKpi) {
		this.evaluationKpi = evaluationKpi;
	}

}